import Layout from '@/views/layout.vue'
import Login from '@/views/login.vue'
import Register from '@/views/register.vue'
import UserDetails from '@/views/userDetails.vue'
import CityMessage from '@/views/citymessage.vue'
import EachhouseDetails from '@/views/eachhouseDetails.vue'
import HouseResources from '@/views/HouseResources.vue'
import cellSearch from '@/views/cellSearch.vue'

import Index from '@/views/seconds/index.vue'
import Find from '@/views/seconds/find.vue'
import Message from '@/views/seconds/message.vue'
import User from '@/views/seconds/user.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    redirect: '/index',
    children: [
      {
        path: '/index',
        component: Index
      },
      {
        path: '/find',
        component: Find
      },
      {
        path: '/message',
        component: Message
      },
      {
        path: '/user',
        component: User
      }
    ]
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/register',
    component: Register
  },
  {
    path: '/userDetails',
    component: UserDetails
  },
  {
    path: '/citymessage',
    component: CityMessage
  },
  {
    path: '/eachhouseDetails/:id',
    component: EachhouseDetails
  },
  {
    path: '/HouseResources',
    component: HouseResources
  },
  {
    path: '/cellSearch',
    component: cellSearch
  }
]
export default routes
